package animation.wlh.com.animation_demo.vector

import android.graphics.drawable.Animatable
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import animation.wlh.com.animation_demo.R
import kotlinx.android.synthetic.main.activity_line_vector.*

/**
 * Created by weilh on 2016/1/25.
 */
class LineVectorAnimationAct: AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_line_vector)
        start_btn.setOnClickListener {
            (img.drawable as Animatable).start()
        }
    }
}